package projet.test;

import static org.junit.Assert.assertEquals;

import org.junit.After;
import org.junit.BeforeClass;
import org.junit.Test;

import projet.item.DVD;

public class _TEST_DVD {
	static DVD dvd;
	
	@BeforeClass
	public static void set()
	{
		dvd = new DVD (1, "theTitle", "comment", "theDirector");
	}
	
	@After
	public void tearDown() throws Exception {

	}
	
	/**
	 * Checks that a User object is not null with constructor signature public CD (1, "theTitle", "comment","theArtist", 9);
	 */
	@Test
	public void constructor() {
		assertEquals(dvd.getId(), 1);
		assertEquals(dvd.getTitle(), "theTitle");
		assertEquals(dvd.getComment(), "comment");
		assertEquals(dvd.getDirector(), "theDirector");
		
	}
}
